<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

class CreateUserClassTable extends Migration {

    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up() {
        Schema::create('user_class', function(Blueprint $table) {
                $table->increments('id');
                $table->char('user_id', 5);
                $table->integer('class_id');
                $table->float('chuyencan',5,3)->default(10);
                $table->float('hocluc',5,3)->default(10);
                $table->string('rank')->default('KHUYEN_KHICH');
                $table->text('note');
                $table->char('updater', 5);
                $table->timestamps();
            });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down() {
        Schema::drop('user_class');
    }

}
